﻿using System.Text;
using System.Threading;

namespace Jodell.Lua
{
    public class Lua_Common
    {
        public static string ByteArrayToString(byte[] datas)
        {
            StringBuilder sb = new StringBuilder();
            foreach (var d in datas)
            {
                sb.Append(d.ToString("X2"));
                sb.Append(' ');
            }
            return sb.ToString();
        }

        public static void Delay(int ms)
        {
            Thread.Sleep(ms);
        }
    }
}
